package com.service.websocket.to;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 描述：
 * 用户缓存
 * @author xianggj
 * @Date 2021/9/10 17:52
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    public static final String USER_KEY = "userKey";
    /**
     * 用户id
     */
    private String userId;

    /**
     * 窗口id
     */
    private String winId;

    /**
     * 用户名称
     */
    private String userName;

    public User(String userId, String userName) {
        this.userId = userId;
        this.userName = userName;
    }
}
